package com.guoguo.mapper;

import com.github.pagehelper.Page;
import com.guoguo.entity.Comment;
import com.guoguo.entity.vo.CommentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/8/11 0011.
 */
public interface CommentMapper {
    //获取图片评论列表
    List<CommentVO> getCommentList(String imgId);

    List<CommentVO> getHotCommentList(String imgId);


    //获取专辑评论列表
    List<CommentVO> getAlbumComment(String albId);
    List<CommentVO> getHotAlbumComment(String albId);


    //插入评论
  int insert(Comment comment);

    //点攒数
    int insertUp(String commId );

    //获取单条评论
    Comment getCommentById(String commId);





}
